import service from '/@/utils/request.ts';

export default {
    // 总览数据
    getOverview (data: any = {}) {
        return service({
          url: 'gyl/order/getSum',
          method: 'post',
          data
        })
    },
    // 商品数据
    getGoods (data: any = {}) {
        return service({
          url: 'gyl/order/getProductData',
          method: 'post',
          data
        })
    },

    // 供货商数据
    getBusiness(data: any = {}) {
      return service({
        url: 'gyl/order/getBusinessCount',
        method: 'post',
        data
      })
    },

    // 订单数据
    getOrder(data: any = {}) {
      return service({
        url: 'gyl/order/getOrderCount',
        method: 'post',
        data
      })
    }
}
